 <?php if ( isset(qvaCore::$qvaOptions['header']['enable']) && !empty(qvaCore::$qvaOptions['header']['enable']) ) : ?>

 <?php 
    $qva_isHome = "";

    

    if ( qva_is_static_page()  )
    {
        $qva_isHome = "is-home";
    }else{
        $qva_isHome = "";
    }

    $qva_headerType =  isset(qvaCore::$qvaOptions['header']['type']) ? qvaCore::$qvaOptions['header']['type'] : "";

    $qva_isSlider = ($qva_headerType=='slider') ? 'is-slider' : '';
 ?>
<div class="banner row <?php echo $qva_isHome . ' ' . $qva_isSlider; ?>" id="banner">
            
        <?php  
   
            if ( !empty($qva_headerType) ) :
                if ($qva_headerType == 'slider') :
                    $sliderId = isset(qvaCore::$qvaOptions['header']['tunna_slider']) && !empty(qvaCore::$qvaOptions['header']['tunna_slider']) ? qvaCore::$qvaOptions['header']['tunna_slider'] : "";
                    echo do_shortcode("[tunna_slider id='".$sliderId."']");
            
                elseif ($qva_headerType == 'video' || $qva_headerType == 'image_fixed') :
                    if ($qva_headerType == 'video') :
                    $qva_type = "video";
                    $qva_link = isset(qvaCore::$qvaOptions['header']['youtube_link']) && !empty(qvaCore::$qvaOptions['header']['youtube_link']) ? qvaCore::$qvaOptions['header']['youtube_link'] : "";
                    else:
                    $qva_type = "image_fixed"; 
                    $qva_link = isset(qvaCore::$qvaOptions['header']['youtube_link']) && !empty(qvaCore::$qvaOptions['header']['image_fixed']) ? qvaCore::$qvaOptions['header']['image_fixed'] : "";
                    endif;
                    $qva_headerTitle = isset(qvaCore::$qvaOptions['header']['title']) ? qvaCore::$qvaOptions['header']['title'] : "";
                    $qva_headerHighlight = isset(qvaCore::$qvaOptions['header']['highlight_text']) ? qvaCore::$qvaOptions['header']['highlight_text'] : "";
                    $qva_headerDes = isset(qvaCore::$qvaOptions['header']['description']) ? qvaCore::$qvaOptions['header']['description'] : "";
                    $qva_headerLink = isset(qvaCore::$qvaOptions['header']['link']) ? qvaCore::$qvaOptions['header']['link'] : "";
                    $qva_headerLinkTitle = isset(qvaCore::$qvaOptions['header']['link_title']) ? qvaCore::$qvaOptions['header']['link_title'] : "";
                    $qva_styleHighlight = isset(qvaCore::$qvaOptions['header']['highlight']) ? qvaCore::$qvaOptions['header']['highlight'] : "yellow";

                    $qva_args = array("title"=>$qva_headerTitle, "span"=>$qva_headerHighlight, "description"=>$qva_headerDes, "link"=>$qva_headerLink, "link_title"=>$qva_headerLinkTitle, "style_span"=>$qva_styleHighlight);
                    
                    qva_outputVideoOrImageFixedHtml( $qva_type, $qva_link, $qva_args);
                endif;
        endif; //header type
    ?>       
</div>
<!--banner end-->
 <?php endif; ?>  